From: Pablo Correa Gómez Date: Fri, 27 May 2022 23:01:19 +0000 (+0200) Subject: macosglcontext: Do not rely on default from get_required_version X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~81^2^2~145^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f4f0daa113ecd8bdec4e1f09cd00407c648650c3;p=gtk4.git macosglcontext: Do not rely on default from get_required_version get_required_version cannot warranty to return any default. Instead, fetch the user requisites clipped by the requirements in our backend. --- diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c index ff7ae975c8..069d138b83 100644 --- a/gdk/macos/gdkmacosglcontext.c +++ b/gdk/macos/gdkmacosglcontext.c @@ -378,7 +378,10 @@ gdk_macos_gl_context_real_realize (GdkGLContext *context, existing = CGLGetCurrentContext (); - gdk_gl_context_get_required_version (context, &major, &minor); + gdk_gl_context_get_clipped_version (context, + GDK_GL_MIN_GL_VERSION_MAJOR, + GDK_GL_MIN_GL_VERSION_MINOR, + &major, &minor); display = gdk_gl_context_get_display (context); shared = gdk_display_get_gl_context (display);